<template>
  <div>
    <h2>我是left组件</h2>
    <ArtList ref="zujian"></ArtList>
  </div>
</template>

<script>
import ArtList from "@/components/ArtList.vue";
export default {
  components: {
    ArtList,
  },
  beforeMount() {
    console.log(this.$refs.zujian);
  },
  beforeDestroy() {
    //实例销毁之前调用，在这一步，实例依然完全可用
  },
  destroyed() {},
};
</script>

<style scoped>
div {
  height: 300px;
  background-color: aqua;
}
</style>